/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hendro.latihan.dao;

import com.hendro.latihan.entity.Stock;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Hendro
 */
public interface StockDao {

    public void insertStock(Stock stock) throws SQLException;

    public void updateStock(Stock stock) throws SQLException;

    public void deleteStock(Integer id) throws SQLException;

    public Stock getById(Integer id) throws SQLException;

    public List<Stock> selectAll() throws SQLException;
}
